// 会员管理接口
import request from '@/utils/request'

export function list(page, pageNum) {
  return request({
    url: '/admin/user/list?page=' + page + '&limit=' + pageNum + '&sort=add_time&order=desc',
    method: 'get',
  })
}
//查找接口
export function sele(page, pageNum, username, mobile, userId) {
  return request({
    url: '/admin/user/list?page=' + page + '&limit=' + pageNum + '&username=' + username + '&mobile=' + mobile + '&userId=' + userId + '&sort=add_time&order=desc',
    method: 'get',
  })
}
//查看详情接口
export function ok(addTime, avatar, deleted, gender, id, lastLoginIp, lastLoginTime, mobile, nickname, password, sessionKey, status, updateTime, userLevel, username,weixinOpenid) {
  return request({
    url: '/admin/user/update',
    method: 'post',
    data:{
      addTime: addTime,
      avatar: avatar,
      deleted: deleted,
      gender: gender,
      id: id,
      lastLoginIp: lastLoginIp,
      lastLoginTime: lastLoginTime,
      mobile: mobile,
      nickname: nickname,
      password: password,
      sessionKey: sessionKey,
      status: status,
      updateTime: updateTime,
      userLevel: userLevel,
      username: username,
      weixinOpenid:weixinOpenid,
    }
   
  })
}